import request from '@/utils/request'

export function getLabels(query) {
  return request({
    url: '/customer/label/getList',
    method: 'post',
    data: query
  })
}

export function getLabel(id) {
  return request({
    url: '/customer/label/getDetail',
    method: 'post',
    data: id
  })
}

export function saveLabel(id) {
  return request({
    url: '/customer/label/save',
    method: 'post',
    data: id
  })
}

export function removeLabelByID(id) {
  return request({
    url: '/customer/label/remove',
    method: 'post',
    data: id
  })
}

export function changeStatusByLabelID(formdata) {
  return request({
    url: '/customer/label/change-status',
    method: 'post',
    data: formdata
  })
}

export function getLabelAvabile(query) {
  return request({
    url: '/customer/label/getList',
    method: 'post',
    data: query
  })
}

